package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.cache.service.IUserInfoRedisService;
import cn.wolfcode.luowowo.domain.User;
import cn.wolfcode.luowowo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("owners")
public class UserController {

    @Autowired
    private IUserService userService;
    @Autowired
    private IUserInfoRedisService userInfoRedisService;



    @GetMapping("/list")
    public Object list(){
        List<User> list= userService.list();
        return list;
    }

}
